<template>
	<div>
		<el-dialog title="查看详情" width="800px" @open="open" class="icon-dialog" :visible.sync="show" :before-close="closeForm" append-to-body>
			<table class="table table-bordered" align="center" width="100%" style="word-break:break-all; margin-bottom:50px;  font-size:13px;">
				<tbody>
				 <tr>
						<td class="title" width="100">{{$t('field.UserAccount_uid')}}：</td>
						<td>
							{{form.uid}}
						</td>
				 </tr>
				 <tr>
						<td class="title" width="100">{{$t('field.UserAccount_account')}}：</td>
						<td>
							{{form.account}}
						</td>
				 </tr>
				<tr>
						<td class="title" width="100">{{$t('field.UserAccount_concern')}}：</td>
						<td>
							{{parseTime(form.concern)}}
						</td>
				</tr>
				 <tr>
						<td class="title" width="100">{{$t('field.UserAccount_create_time')}}：</td>
						<td>
							{{form.create_time}}
						</td>
				 </tr>
				<tr>
						<td class="title" width="100">{{$t('field.UserAccount_update_time')}}：</td>
						<td>
							{{parseTime(form.update_time)}}
						</td>
				</tr>
				 <tr>
						<td class="title" width="100">{{$t('field.UserAccount_total')}}：</td>
						<td>
							{{form.total}}
						</td>
				 </tr>
				 <tr>
						<td class="title" width="100">{{$t('field.UserAccount_rec_total')}}：</td>
						<td>
							{{form.rec_total}}
						</td>
				 </tr>
				 <tr>
						<td class="title" width="100">{{$t('field.UserAccount_rec_fee')}}：</td>
						<td>
							{{form.rec_fee}}
						</td>
				 </tr>
				 <tr>
						<td class="title" width="100">{{$t('field.UserAccount_max_net_recharge')}}：</td>
						<td>
							{{form.max_net_recharge}}
						</td>
				 </tr>
				 <tr>
						<td class="title" width="100">{{$t('field.UserAccount_wit_total')}}：</td>
						<td>
							{{form.wit_total}}
						</td>
				 </tr>
				 <tr>
						<td class="title" width="100">{{$t('field.UserAccount_wit_fee')}}：</td>
						<td>
							{{form.wit_fee}}
						</td>
				 </tr>
				 <tr>
						<td class="title" width="100">{{$t('field.UserAccount_capital_total')}}：</td>
						<td>
							{{form.capital_total}}
						</td>
				 </tr>
				 <tr>
						<td class="title" width="100">{{$t('field.UserAccount_trade_total')}}：</td>
						<td>
							{{form.trade_total}}
						</td>
				 </tr>
				 <tr>
						<td class="title" width="100">{{$t('field.UserAccount_manage_total')}}：</td>
						<td>
							{{form.manage_total}}
						</td>
				 </tr>
				 <tr>
						<td class="title" width="100">{{$t('field.UserAccount_deferred_total')}}：</td>
						<td>
							{{form.deferred_total}}
						</td>
				 </tr>
				 <tr>
						<td class="title" width="100">{{$t('field.UserAccount_divide_total')}}：</td>
						<td>
							{{form.divide_total}}
						</td>
				 </tr>
				 <tr>
						<td class="title" width="100">{{$t('field.UserAccount_server_total')}}：</td>
						<td>
							{{form.server_total}}
						</td>
				 </tr>
				 <tr>
						<td class="title" width="100">{{$t('field.UserAccount_push_total')}}：</td>
						<td>
							{{form.push_total}}
						</td>
				 </tr>
				 <tr>
						<td class="title" width="100">{{$t('field.UserAccount_plus_fee_total')}}：</td>
						<td>
							{{form.plus_fee_total}}
						</td>
				 </tr>
				 <tr>
						<td class="title" width="100">{{$t('field.UserAccount_change_total')}}：</td>
						<td>
							{{form.change_total}}
						</td>
				 </tr>
				 <tr>
						<td class="title" width="100">{{$t('field.UserAccount_stamp_total')}}：</td>
						<td>
							{{form.stamp_total}}
						</td>
				 </tr>
				 <tr>
						<td class="title" width="100">{{$t('field.UserAccount_sell_fee_total')}}：</td>
						<td>
							{{form.sell_fee_total}}
						</td>
				 </tr>
				 <tr>
						<td class="title" width="100">{{$t('field.UserAccount_buy_fee_total')}}：</td>
						<td>
							{{form.buy_fee_total}}
						</td>
				 </tr>
				 <tr>
						<td class="title" width="100">{{$t('field.UserAccount_profit_total')}}：</td>
						<td>
							{{form.profit_total}}
						</td>
				 </tr>
				 <tr>
						<td class="title" width="100">{{$t('field.UserAccount_fee_total')}}：</td>
						<td>
							{{form.fee_total}}
						</td>
				 </tr>
				 <tr>
						<td class="title" width="100">{{$t('field.UserAccount_day_capital')}}：</td>
						<td>
							{{form.day_capital}}
						</td>
				 </tr>
				 <tr>
						<td class="title" width="100">{{$t('field.UserAccount_month_capital')}}：</td>
						<td>
							{{form.month_capital}}
						</td>
				 </tr>
				 <tr>
						<td class="title" width="100">{{$t('field.UserAccount_week_capital')}}：</td>
						<td>
							{{form.week_capital}}
						</td>
				 </tr>
				 <tr>
						<td class="title" width="100">{{$t('field.UserAccount_mutual_capital')}}：</td>
						<td>
							{{form.mutual_capital}}
						</td>
				 </tr>
				 <tr>
						<td class="title" width="100">{{$t('field.UserAccount_increase_capital')}}：</td>
						<td>
							{{form.increase_capital}}
						</td>
				 </tr>
				 <tr>
						<td class="title" width="100">{{$t('field.UserAccount_increase_bond')}}：</td>
						<td>
							{{form.increase_bond}}
						</td>
				 </tr>
				 <tr>
						<td class="title" width="100">{{$t('field.UserAccount_sms_time')}}：</td>
						<td>
							{{form.sms_time}}
						</td>
				 </tr>
				 <tr>
						<td class="title" width="100">{{$t('field.UserAccount_reid')}}：</td>
						<td>
							{{form.reid}}
						</td>
				 </tr>
				 <tr>
						<td class="title" width="100">{{$t('field.UserAccount_agent')}}：</td>
						<td>
							{{form.agent}}
						</td>
				 </tr>
				 <tr>
						<td class="title" width="100">{{$t('field.UserAccount_staff')}}：</td>
						<td>
							{{form.staff}}
						</td>
				 </tr>
				 <tr>
						<td class="title" width="100">{{$t('field.UserAccount_mother')}}：</td>
						<td>
							{{form.mother}}
						</td>
				 </tr>
				 <tr>
						<td class="title" width="100">{{$t('field.UserAccount_voucher_management')}}：</td>
						<td>
							{{form.voucher_management}}
						</td>
				 </tr>
				 <tr>
						<td class="title" width="100">{{$t('field.UserAccount_voucher_managetotal')}}：</td>
						<td>
							{{form.voucher_managetotal}}
						</td>
				 </tr>
				 <tr>
						<td class="title" width="100">{{$t('field.UserAccount_voucher_cash')}}：</td>
						<td>
							{{form.voucher_cash}}
						</td>
				 </tr>
				 <tr>
						<td class="title" width="100">{{$t('field.UserAccount_friend_coupon')}}：</td>
						<td>
							{{form.friend_coupon}}
						</td>
				 </tr>
				 <tr>
						<td class="title" width="100">{{$t('field.UserAccount_my_coupon')}}：</td>
						<td>
							{{form.my_coupon}}
						</td>
				 </tr>
				<tr>
						<td class="title" width="100">{{$t('field.UserAccount_first_voucher_done')}}：</td>
						<td>
							<span v-if="form.first_voucher_done == '1'">是</span>
							<span v-if="form.first_voucher_done == '0'">否</span>
						</td>
				</tr>
				 <tr>
						<td class="title" width="100">{{$t('field.UserAccount_first_total')}}：</td>
						<td>
							{{form.first_total}}
						</td>
				 </tr>
				 <tr>
						<td class="title" width="100">{{$t('field.UserAccount_first_trans_red_total')}}：</td>
						<td>
							{{form.first_trans_red_total}}
						</td>
				 </tr>
				<tr>
						<td class="title" width="100">{{$t('field.UserAccount_first_date')}}：</td>
						<td>
							{{parseTime(form.first_date)}}
						</td>
				</tr>
				<tr>
						<td class="title" width="100">{{$t('field.UserAccount_first_gift')}}：</td>
						<td>
							<span v-if="form.first_gift == '0'">未领取</span>
							<span v-if="form.first_gift == '1'">已领取</span>
						</td>
				</tr>
				<tr>
						<td class="title" width="100">{{$t('field.UserAccount_first_trans_date')}}：</td>
						<td>
							{{parseTime(form.first_trans_date)}}
						</td>
				</tr>
				 <tr>
						<td class="title" width="100">{{$t('field.UserAccount_first_voucher')}}：</td>
						<td>
							{{form.first_voucher}}
						</td>
				 </tr>
				<tr>
						<td class="title" width="100">{{$t('field.UserAccount_last_trans_date')}}：</td>
						<td>
							{{parseTime(form.last_trans_date)}}
						</td>
				</tr>
				 <tr>
						<td class="title" width="100">{{$t('field.UserAccount_profit_multiple')}}：</td>
						<td>
							{{form.profit_multiple}}
						</td>
				 </tr>
				 <tr>
						<td class="title" width="100">{{$t('field.UserAccount_version')}}：</td>
						<td>
							{{form.version}}
						</td>
				 </tr>
				</tbody>
			</table>
		</el-dialog>
	</div>
</template>
<script>
import { detail , getFieldList } from '@/api/app/useraccount'
export default {
	name:'userAccountdetail',
	props: {
		show: {
			type: Boolean,
			default: true
		},
		size: {
			type: String,
			default: 'mini'
		},
		info: {
			type: Object,
		},
	},
	data() {
		return {
			form:{
			},
		}
	},
	watch:{
		show(val){
			if(val){
				getFieldList().then(res => {
					if(res.status == 200){
					}
				})
			}
		}
	},
	methods: {
		open(){
			detail(this.info).then(res => {
				this.form = res.data
			})
		},
		closeForm(){
			this.$emit('update:show', false)
		}
	}
}
</script>
<style  lang="scss">
@import '@/assets/scss/common.scss'
</style>
